package com.venus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Venus
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Module extends Model<Module> {

    private static final long serialVersionUID = 1L;

    /**
     * 模块id
     */
    @TableId(value = "mod_id", type = IdType.AUTO)
    private Integer modId;

    /**
     * 模块名称
     */
    private String modName;

    /**
     * 父模块id
     */
    private Integer modParentId;

    /**
     * 模块路径
     */
    private String modPath;

    /**
     * 模块权重
     */
    private Integer modWeight;

    /**
     * 字符串
     */
    private String string0;

    /**
     * 数字
     */
    private Integer int0;


    @Override
    protected Serializable pkVal() {
        return this.modId;
    }

}
